<%@page language="java"%>
<%@page contentType="text/html"%>
<%@page import="java.util.*, descriptor.*"%>

<jsp:include page="compsup_generic_pre.jsp" >
	<jsp:param name="pagesubtitle" value="Students List" />
</jsp:include>


	<!--<p>
		<jsp:useBean id="infos" class="java.lang.String" scope="request" />
		<%= infos %>
	</p>
	-->
	<p>
		<jsp:useBean id="students" class="descriptor.StudentListDescriptor" scope="request" />
		<% if (students.getStudentList().size() == 0){%>
		You are not currently supervising any student.
		<%}else{%>
		<table>
			<tr><th>Name</th><th>Degree ID</th><th>Feedback</th></tr>
			<% for (StudentDescriptor sd: students.getStudentList() ){%>
			<tr>
				<td><%= sd.getFirstName() %> <%= sd.getSurName() %></td>
				<td><%= sd.getDegree()%></td>
				<td><a href="companySup?action=students_more&studentId=<%= sd.getId() %>">edit</a></td>
			</tr>
			<%}%>
		</table>
		<%}%>
	</p>
	
<jsp:include page="compsup_generic_post.jsp" ></jsp:include>		